/**
*
* @Depends ksg.gridCore.js
*/
(function ($) {

	$.extend(ksg.ui.grid.columnDefinitions, {
		//CategorySet BizObj column types
		"categorySet-_id" : {"type":"key", "dataField": "id"},
        "categorySet-type": {header:"Type", dataField: "associable.bizObjType", "type":"dropdown", "getListService": "getCategorySetTypes"},
        "categorySet-name": {header:"Name", "type":"text"},
        "categorySet-associableDisplayInfo": {header:"Associated Info", "type":"dropdown", "getListService": "getCategoryAssociableTypes", "getListServiceParams":"$colVal('type')$", "textField": "displayName"},
		
		//Category BizObj column types
		"category-_id" : {"type":"key", "dataField": "id"},
        "category-image":{header:"Image", dataField:"primaryImage", "type": "image", "width": 80},
        "category-displayName":{header:"Display Name", "type": "text", "width": 150},
        "category-keyword":{header:"Searchable Keyword", "type": "text", "width": 150},
        "category-inListing":{header:"In Listings", dataField:"showInPublicListings", "type": "checkbox", "width": 50},
        "category-openGraphName":{header:"Open Graph Name", "type": "dropdown", "width": 150, "getListService": "getOpenGraphNames", "updateItemService": "updateOpenGraphName"},
		
		//CategoryProperty BizObj column types
		"categoryProperty-_id" : {"type":"key", "dataField": "id"},
		"categoryProperty-propertyName" : {header:"Name", "type": "text"},
		"categoryProperty-displayName" : {header:"Display Label", "type": "text"},
		"categoryProperty-propertyType" : {header:"Type", "type": "dropdown", "getListService": "getCategoryPropertyTypes", "updateItemService": "updateCategoryPropertyType"},
		"categoryProperty-propertyOptions" : {header:"Options", "type": "text"},
		"categoryProperty-isSecure" : {header:"Secure", "type": "checkbox"}				
	});

})(jQuery);
